package com.tsing.spring_learn.config;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class BeanObj1 {

    public BeanObj1() {
        System.out.println("Call beanObj1's constructMethod");
    }

    @Override
    public String toString() {
        return "BeanObj1{}";
    }


    public void print(){
        System.out.println("BeanObj1's print");
    }



}
